/**
 * 
 */
package com.hs.dnms.action.statics;

/**
 * @author Administrator
 *
 */
public class StaObj implements Comparable{
	
	private String nameStr ;
	
	private String countall="0";
	
	private String rangestr = "";
	
	private String countsql = "";
	
	private String maxstr = "0";
	
	private String minstr = "0";

	public String getMaxstr() {
		return maxstr;
	}

	public void setMaxstr(String maxstr) {
		this.maxstr = maxstr;
	}

	public String getMinstr() {
		return minstr;
	}

	public void setMinstr(String minstr) {
		this.minstr = minstr;
	}

	public String getCountsql() {
		return countsql;
	}

	public void setCountsql(String countsql) {
		this.countsql = countsql;
	}

	public int compareTo(Object arg0) {
		Long thisvalue = Long.parseLong(this.countall);
		Long newvalue = 0l;
		StaObj newobj = (StaObj)arg0;
		if(null != newobj && null != newobj.getCountall()){
			newvalue = Long.parseLong(newobj.getCountall());
		}
		if(thisvalue >= newvalue)
			return -1;
  		return 1;
	}

	public String getNameStr() {
		return nameStr;
	}

	public void setNameStr(String nameStr) {
		this.nameStr = nameStr;
	}

	public String getCountall() {
		return countall;
	}

	public void setCountall(String countall) {
		this.countall = countall;
	}

	public String getRangestr() {
		return rangestr;
	}

	public void setRangestr(String rangestr) {
		this.rangestr = rangestr;
	}

}
